"""
======================
Author: 柠檬班-小简
Time: 2022/10/26 20:52
Project: day6_framwork_V3
Company: 湖南零檬信息技术有限公司
======================
"""
class Data:
    pass

# 怎么动态的向Data类添加属性和值。 setattr,
# 怎么向Data类获取类属性   getattr

token = 'c2368537-07a7-4da9-bb5d-7b21ce5a5699'
new_token = 'dc2150a7-eb49-4f74-b11e-3248fb15e654'

setattr(Data, "token", token)
setattr(Data, "new_token", new_token)

print(getattr(Data, "token"))
